var _CDN_HOST = "http://cdn.sf8cloud.com";

module.exports = {

  CDN_HOST: _CDN_HOST,

  /**
   * 图片cdn地址
   */
  formatImg: function (url) {
    if(url.indexOf('http:') == 0) {
      return url;
    }
    return _CDN_HOST + url + '?cdn=true';
  },
  ossHomeThumbImg: function (url) {
    if(url.indexOf('http:') == 0) {
      return url;
    }
    return _CDN_HOST + url + '@1e_1c_0o_0l_240h_240w_100q.src';
  },
};
